public class Eagle extends Bird {

   public Eagle(FlyBehavior flyBehavior, SwimBehavior swimBehavior){
      super(flyBehavior,swimBehavior);
   }

   @Override
   public void display() {
      System.out.println("我是老鹰");
      flyBehavior.Fly();
      swimBehavior.Swim();
   }
}
